package com.shop.entity.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.shop.entity.pojo.OrdersDetail;
import lombok.Data;

import java.util.List;

@TableName(value = "orders")
@JsonIgnoreProperties(value ={"handler"})
@Data
public class OrdersVo {

    @TableId(value = "id")
    private Long id;
    @TableField(value = "user_name")
    private String userName;
    @TableField(value = "user_phone")
    private Long userPhone;
    @TableField(value = "orders_id")
    private String ordersId;
    @TableField(value = "orders_state")
    private Integer ordersState;
    @TableField(value = "orders_price")
    private double ordersPrice;
    @TableField(value = "is_delete")
    private Integer isDelete;
    @TableField(value = "orders_memo")
    private String ordersMemo;
    private List<OrdersDetail> ordersDetails;

}
